'use strict';
const db = uniCloud.database();
exports.main = async (event, context) => {
	const openId = event.openId;
	console.log('openId', openId)
	const res = await db.collection('addresses').where({openId}).get()
	const resData = res.data
	return {
		status: 0,
		data: resData,
		msg: '获取用户地址列表成功'
	}
};
